<template>
    <div>
        <el-menu
            default-active="2"
            class="el-menu-vertical-demo"
            @open="handleOpen"
            @close="handleClose"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b"
            :router='true'

        >
            <el-submenu index="1">
                <template slot="title">
                    <i class="el-icon-s-unfold"></i>
                    <span>管理员管理</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="/superAdminsSystem/addAdmins">新增管理员</el-menu-item>
                    <el-menu-item index="/superAdminsSystem/listAdmins">管理员列表</el-menu-item>
                    <el-menu-item index="/superAdminsSystem/showData">查看数据</el-menu-item>
                </el-menu-item-group>
            </el-submenu>
            <el-submenu index="2">
                <template slot="title">
                    <i class="el-icon-s-tools"></i>
                    <span>日志管理</span>
                </template>
                <el-menu-item-group>
                    <el-menu-item index="/superAdminsSystem/logAdmins">登录日志</el-menu-item>
                </el-menu-item-group>
            </el-submenu>
        </el-menu>
    </div>
</template>

<script>
export default {
    methods: {
        handleOpen(key, keyPath) {
            console.log(key, keyPath);
        },
        handleClose(key, keyPath) {
            console.log(key, keyPath);
        },
    },
};
</script>

<style>
.el-menu {
    border-right: 0;
}
</style>